import { httpRequest } from "@/http/axios/index"

// todo: typescript

async function signIn(data: { username: string; password: string }) {
  return httpRequest.request({
    url: "/api/common/login",
    method: "POST",
    data
  })
}

async function getPermMenu() {
  return httpRequest.request({
    url: "/api/common/permmenu"
  })
}

export { signIn, getPermMenu }
